package com.qfedu.openplateform.manager.service.impl;

import com.qfedu.openplateform.manager.dao.ApiSystemparamMapper;
import com.qfedu.openplateform.manager.entity.ApiSystemparam;
import com.qfedu.openplateform.manager.service.ApiSystemparamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author lileijian
 * @create 2021-12-02 18:44
 */
@Service
@Transactional
public class ApiSystemparamServiceImpl implements ApiSystemparamService {
    @Autowired
    private ApiSystemparamMapper apiSystemparamMapper;
    @Override
    public void addApiSystemparam(ApiSystemparam apiSystemparam) {
        apiSystemparamMapper.addApiSystemparam(apiSystemparam);
    }

    @Override
    public void delApiSystemparams(Integer[] ids) {
        apiSystemparamMapper.delApiSystemparams(ids);
    }

    @Override
    public void updateApiSystemparam(ApiSystemparam apiSystemparam) {
        apiSystemparamMapper.updateApiSystemparam(apiSystemparam);
    }

    @Override
    public List<ApiSystemparam> queryApiSystemparam() {
        List<ApiSystemparam> apiSystemparamList = apiSystemparamMapper.queryApiSystemparam();
        return apiSystemparamList;
    }
}
